package com.miku.blog.controller;

import com.miku.blog.annotation.SystemLog;
import com.miku.blog.domain.pojo.ResponseResult;
import com.miku.blog.service.LogoutService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shkstart
 * @create ${}YEAR-05-28 8:19
 */
@Api(tags = "注销")
@RestController
public class LogoutController {

    @Autowired
    private LogoutService logoutService;

    @SystemLog(notes = "退出登录")
    @ApiOperation(value = "退出登录接口",notes = "用户退出登录 清除数据")
    @GetMapping("/logout")
    public ResponseResult logout(){
        return logoutService.logout();
    }

}
